package org.kl.bf.report.exporter;

import java.io.OutputStream;

import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.export.HtmlExporter;
import net.sf.jasperreports.export.SimpleExporterInput;
import net.sf.jasperreports.export.SimpleHtmlExporterOutput;

/**
 * 
 * @author Qken
 * @date 2014年6月9日
 */
public class ReportHtmlExporter extends AbstractReportFileExporter {

	public void export(JasperPrint jasperPrint, OutputStream os) throws JRException {
		HtmlExporter exporter = new HtmlExporter();
		exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
		exporter.setExporterOutput(new SimpleHtmlExporterOutput(os));
		exporter.exportReport();
	}

}
